package com.mk.web.proxy.jdk;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * 秘书
 * Created by WangChen on 2018/11/29 13:44.
 */
public class Secretary implements InvocationHandler {

    private Boss boss = new Boss();

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        Object result = method.invoke(boss, args);
        return result;
    }
}
